import 'package:cbec_app/components/base/base_page.dart';
import 'package:cbec_app/components/common/text_arrow_item.dart';
import 'package:cbec_app/components/base/base_nav_bar.dart';
import 'package:cbec_app/routes/routes.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

///隐私政策设置页面
class PrivacySetting extends GetView {
  const PrivacySetting({super.key});

  @override
  Widget build(context) {
    return BasePage(
      title: "隐私设置",
      iconType: IconType.back,
      children: [
        SizedBox(
          height: 0.8.h,
        ),
        ListItem(texts: "个性化推荐设置", ontap: () => {Get.toNamed(Routes.personalizedRecommendationSettings)}),
        ListItem(texts: "撤回同意隐私政策", ontap: () => {Get.toNamed(Routes.withdrawConsentPrivacyPolicy)}),
      ],
    );
  }
}
